import request from '@/utils/request'
//驾校审核列表
export function school(data) {
    return request({
      url: 'school',
      method: 'get',
      params: data,
      headers: {
        showLoading: true
      }
    })
  }
//驾校详情
export function schoolDetail(data) {
    return request({
      url: 'school/detail',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
//驾校审核
export function schoolApproval(data) {
    return request({
      url: 'school/approval',
      method: 'put',
      data,
      headers: {
        'showLoading': false,
      }
    })
  }
//机构审核列表
export function schoolTeam(data) {
    return request({
      url: 'school/team',
      method: 'get',
      params: data,
      headers: {
        'showLoading': true,
      }
    })
  }
//机构审核详情
export function teamDetail(data) {
    return request({
      url: 'school/team/detail',
      method: 'get',
      params: data,
      headers:{
        'showLoading':true,
        'loadingTarget':'.innerLoding'
      }
    })
  }
//机构审核
export function schoolTeamApproval(data) {
    return request({
      url: 'school/team/approval',
      method: 'put',
      data,
      headers: {
        'showLoading': false,
      }
    })
  }

//训练场审核列表
export function train(data) {
  return request({
    url: 'train',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//训练场审核详情
export function trainDetail(data) {
  return request({
    url: 'train/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//训练场审核
export function trainApproval(data) {
  return request({
    url: 'train/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//班型审核列表
export function getpackage(data) {
  return request({
    url: 'package',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//班型审核详情
export function packageDetail(data) {
  return request({
    url: 'package/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//班型审核
export function packageApproval(data) {
  return request({
    url: 'package/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//考场审核列表
export function examschool(data) {
  return request({
    url: 'examschool',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//考场审核详情
export function examschoolDetail(data) {
  return request({
    url: 'examschool/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//考场审核
export function examschoolApproval(data) {
  return request({
    url: 'examschool/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//教练审核列表
export function coach(data) {
  return request({
    url: 'coach',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//教练审核详情
export function coachDetail(data) {
  return request({
    url: 'coach/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//教练审核
export function coachApproval(data) {
  return request({
    url: 'coach/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//活动审核列表
export function activity(data) {
  return request({
    url: 'activity',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//活动审核详情
export function activityDetail(data) {
  return request({
    url: 'activity/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//活动审核
export function activityApproval(data) {
  return request({
    url: 'activity/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//平台审核
export function platformApproval(data) {
  return request({
    url: 'platform/approval',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//平台审核列表
export function platform(data) {
  return request({
    url: 'platform',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//平台审核详情
export function platformDetail(data) {
  return request({
    url: 'platform/detail',
    method: 'get',
    params: data,
    headers:{
      'showLoading':true,
      'loadingTarget':'.innerLoding'
    }
  })
}
//待领取的
export function examine(data) {
  return request({
    url: 'examine',
    method: 'get',
    params: data,
    headers: {
      'showLoading': true,
    }
  })
}
//待领取的
export function examineReceive(data) {
  return request({
    url: 'examine/receive',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}
//移交
export function examineTransfer(data) {
  return request({
    url: 'examine/transfer',
    method: 'put',
    data,
    headers: {
      'showLoading': false,
    }
  })
}


